<?php

     /**
	 * Elgg OpenID login form
	 * 
	 * @package Elgg
	 * @subpackage openid_client
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Kevin Jardine, Radagast Solutions
	 * @copyright Curverider Ltd 2008-2009
	 * @link http://elgg.org/
	 */
	 
?>
<div id="login-box">
    <h2><?php echo elgg_echo('openid_client_login_title'); ?></h2>
    <form action="<?php echo $vars['url']; ?>mod/openid_client/actions/login.php" method="post">
    <input type="hidden" name="passthru_url" value="http://<?php echo $_SERVER['HTTP_HOST']. $_SERVER['REQUEST_URI'] ?>" />
            <style>
				input.openid_login {
				background: url(<?php echo $vars['url']; ?>mod/openid_client/login-bg.gif) no-repeat;
				background-color: #fff;
				background-position: 0 50%;
				color: #000;
				width: 160px;
				}
			</style>
            <table>
                <tr>
                    <td><p>
                        <label><?php echo elgg_echo('openid_client_login_service'); ?><br /><select name="externalservice">
                            <option value="">OpenID</option>
                            <option value="aim">AIM</option>
                            <option value="livejournal">LiveJournal</option>
                            <option value="vox">Vox</option>
                            <option value="pip">Verisign PIP</option>
                            <option value="explode">Explode</option>
                            <option value="wordpress">Wordpress.com</option>
                            </select>
                        </label></p>
                </tr>
                <tr>
                    <td><p class="loginbox">
                        <label><?php echo elgg_echo('username'); ?><br /><input class="openid_login" type="text" name="username" id="username" style="size: 200px" /></label>
						<input type="submit" name="submit" value="<?php echo elgg_echo('openid_client_go'); ?>" />
						<div id="persistent_login"><label><input type="checkbox" name="remember" checked="checked" /><?php echo elgg_echo('openid_client_remember_login'); ?></label></div>
                        </p>
                    </td>
                </tr>            
            </table>
    </form>
</div>